#include "stdafx.h"

#include "ModulePatchWindow.h"

class CModulePatch : public ISMPlugin
{
public:
	CModulePatch();
	virtual ~CModulePatch();
	virtual void Release();
	virtual HWND GetHWnd(){ return m_Window.GetHWnd();}
	virtual bool ProcessMessage(CMsg* pMsg,CMassiveMsg* pMassiveMsg);

	bool Create(sPluginCreateInfo* pCreateInfo);

protected:
	CModulePatchWindow	m_Window;
};

IMPLEMENT_CREATE_PLUGIN_FUNCTION( CModulePatch);
//

CModulePatch::CModulePatch()
{
}

CModulePatch::~CModulePatch()
{
}

bool CModulePatch::Create(sPluginCreateInfo* pCreateInfo)
{
	pCreateInfo->m_pSMPlugin = this;
	strcpy_s( pCreateInfo->m_szName, MAX_PATH, "ModulePatch");

	m_Window.Create( pCreateInfo->m_hPluginHandle, pCreateInfo->m_hParentWnd);

	return true;
}

void CModulePatch::Release()
{
	m_Window.Release();
}

bool CModulePatch::ProcessMessage(CMsg* pMsg,CMassiveMsg* pMassiveMsg)
{
	return m_Window.ProcessMessage( pMsg, pMassiveMsg);
}
